package engine.network.hostSide.enums;

public enum PlayerReq {
	EXIT("EXIT"),NEW_COORD("NewCoord"), WRONG_CMD("error ...");
	
	private String _label;
	
	public String label(){
		return _label;
	}
	
	private PlayerReq(String s) {
		_label = s;
	}
	
	public static PlayerReq factory(String s){
		PlayerReq req = WRONG_CMD;
		if(s.equals(EXIT._label)){
			req = EXIT;
		}else if(s.equals(NEW_COORD._label)){
			req = NEW_COORD;
		}
		
		return req; 
	}
}
